package java05;

public class Test01 {
    public static void main(String[] args){
        //创建一个空字符串
        String str1 = new String();
        //创建一个内容为abc的字符串
        String str2 = new String("abc");
        //创建一个内容为字符数组的字符串
        char[] char1 = new char[] {'A','B','C'};
        byte[] byte1 = new byte[] {97,98,99};
        String str4 = new String(byte1);
        String str3 = new String(char1);
        System.out.println(str4);
        System.out.println("a" + str1 + "b");
        System.out.println(str2);
        System.out.println(str3);
    }
}
